//
//  MTContacterSectionHeaderView.swift
//  MT
//
//  Created by ooops on 2020/5/5.
//  Copyright © 2020 张强. All rights reserved.
//

import UIKit
import MTCategory

class MTContacterSectionHeaderView: UIView {
    
    override init(frame: CGRect) {
        super.init(frame: frame)
        setupUI()
        makeConstraint()
        backgroundColor = UIColor(hex: 0xf6f6f6)
    }
    
    lazy var titleLabel: UILabel = {
        let l = UILabel()
        l.font = PingFangSCMediumFont(14)
        l.textColor = UIColor.text.x9b9b9b
        return l
    }()
    
    func setTitle(title: String) {
        self.titleLabel.text = title
    }
    
    private func setupUI() {
        addSubview(titleLabel)
    }
    
    private func makeConstraint() {
        titleLabel.snp.makeConstraints { (make) in
            make.left.equalToSuperview().offset(10)
            make.centerY.equalToSuperview()
        }
    }
    
    required init?(coder: NSCoder) {
        super.init(coder: coder)
    }


}
